//
//  BelleTableViewCell.m
//  PhoenixNews
//
//  Created by dllo on 16/1/18.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "BelleTableViewCell.h"


@implementation BelleTableViewCell

- (void)dealloc {
    [_imageUrl release];
    [_image release];
    [_comment release];
    [_likes release];
    [_imageCommect release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imageUrl = [[UIImageView alloc] init];
        [self.contentView addSubview:_imageUrl];
        [self.imageUrl release];
        
        self.comment = [[UILabel alloc] init];
        [self.contentView addSubview:_comment];
        [self.comment release];
        
        self.likes  =[[UILabel alloc] init];
        [self.contentView addSubview:_likes];
        [self.likes release];
        
        self.image = [[UIImageView alloc] init];
        [self.contentView addSubview:_image];
        [self.image release];
        
        self.imageCommect = [[UIImageView alloc] init];
        [self.contentView addSubview:_imageCommect];
        [self.imageCommect release];
//        self.recomment = [[RecommentClickModel alloc] init];
        
        
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    _imageUrl.frame = CGRectMake(0, 20, self.frame.size.width , 600);

    _likes.frame = CGRectMake(50, self.imageUrl.frame.size.height + 40, 60, 40);
    _image.frame = CGRectMake(20, self.imageUrl.frame.size.height + 50, 20, 20);
    _comment.frame = CGRectMake(self.frame.size.width - 80, self.imageUrl.frame.size.height + 40, 60, 40);
    _imageCommect.frame = CGRectMake(self.frame.size.width - 100, self.imageUrl.frame.size.height + 50, 20, 20);
    
    _image.alpha = 0.5;
    _likes.alpha = 0.5;
    _comment.alpha = 0.5;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
